package com.gking.centerSystem.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 权限表
 */
@Data
@TableName("sy_permissions")
public class Permissions implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //系统唯一编码
    @TableField(value = "systemCode")
    private String systemCode;

    //权限名称
    @TableField(value = "name")
    private String name;

    //权限信息
    @TableField(value = "code")
    private String code;

    //权限描述
    @TableField(value = "description")
    private String description;

    //权限分类id
    @TableField(value = "sortId")
    private String sortId;

    //权限是否启用
    @TableField(value = "enable")
    private Integer enable;

    //权限是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //权限创建者id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //权限创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //权限更新者id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //权限更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //权限删除者id
    @TableField(value = "deleteUserId")
    private String deleteUserId;

    //权限删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;


}
